﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Data;
using Model;
using DAL;
namespace BLL
{
 public    class InvestBLL
    {
     InvestDAL dal = new InvestDAL();
     /// <summary>
     /// 投资的显示
     /// </summary>
     /// <returns></returns>
     public List<Invest> Invest_Show()
     {
         return dal.Invest_Show();
     }
     /// <summary>
     /// 投资的添加
     /// </summary>
     /// <param name="m"></param>
     /// <returns></returns>
     public int Invest_Insert(Invest u)
     {
         return dal.Invest_Insert(u);
     }
     /// <summary>
     /// 投资的删除
     /// </summary>
     /// <param name="id"></param>
     /// <returns></returns>
     public int Invest_Delete(int id)
     {
         return dal.Invest_Delete(id);
     }
     /// <summary>
     /// 投资的显示或修改第一步
     /// </summary>
     /// <param name="id"></param>
     /// <returns></returns>
     public Invest Invest_details(int id)
     {


         return dal.Invest_details(id);
     }
     /// <summary>
     /// 投资修改
     /// </summary>
     /// <param name="id"></param>
     /// <returns></returns>
     public int Invest_Edit(Invest u)
     {
         return dal.Invest_Edit(u);
     }
     /// <summary>
     /// 投资的查询
     /// </summary>
     /// <param name="Invester"></param>
     /// <returns></returns>
     public List<Invest> Invest_Search(string Invester)
     {
         return dal.Invest_Search(Invester);
     }
    }
}
